
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class AvocationConsumereelCfg : public ManualSingleton <AvocationConsumereelCfg>
{
	friend ManualSingleton <AvocationConsumereelCfg>;
public:
	AvocationConsumereelCfg();
	~AvocationConsumereelCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const AvocationConsumereelCfgInfo *GetAvocationConsumereelCfgInfo(int32_t consumeReel_Id);
	const AvocationConsumereelCfgMap *GetAvocationConsumereelCfgMap() { return &m_AvocationConsumereelCfgMap; }
private:
	AvocationConsumereelCfgMap m_AvocationConsumereelCfgMap;
};

#define  g_MakeAvocationConsumereelCfgTable() (AvocationConsumereelCfg::Instance())
#define  g_GetAvocationConsumereelCfgTable() (AvocationConsumereelCfg::GetInstance())
#define  g_DelAvocationConsumereelCfgTable() (AvocationConsumereelCfg::Destroy())